<%@page import="com.xxb.entity.Order"%>
<%@page import="com.xxb.dao.OrderDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%	
	request.setCharacterEncoding("UTF-8");

	String id = request.getParameter("id");
	String state = request.getParameter("state");
	
	int rows = new OrderDao().updateState(id,state);
	
	if(rows > 0) {
		response.sendRedirect("l_orderlist.jsp?code=100");
	}
%>